package com.ruoyi.patrol.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程意见对象 pt_process_opinion
 * 
 * @author lkm
 * @date 2022-11-10
 */
public class PtProcessOpinion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流程意见ID */
    private Long id;

    /** 业务ID */
    @Excel(name = "业务ID")
    private String businessKey;

    /** 审核状态（0：同意，1：不同意） */
    @Excel(name = "审核状态", readConverterExp = "0：同意，1：不同意")
    private int isAgree;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String opinion;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBusinessKey(String businessKey) 
    {
        this.businessKey = businessKey;
    }

    public String getBusinessKey() 
    {
        return businessKey;
    }
    public void setIsAgree(int isAgree)
    {
        this.isAgree = isAgree;
    }

    public int getIsAgree()
    {
        return isAgree;
    }
    public void setOpinion(String opinion) 
    {
        this.opinion = opinion;
    }

    public String getOpinion() 
    {
        return opinion;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessKey", getBusinessKey())
            .append("status", getIsAgree())
            .append("opinion", getOpinion())
            .append("taskName", getTaskName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
